<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			#dv{
				width:300px;
				height:300px;
				border:1px solid #f00 ;
			}
			#dv2
			    width:100px;
				height:200px;
				margin-top: 20px;
				border:1px solid #f00 ;
		</style>
	</head>
	<body>
		<div id="dv"></div>
		<div id="dv2"></div>
		<script type="text/javascript">
		      function setBg(color,w){
		      	console.log(this)
		      	this.style.background=color;
		      	this.style.borderWidth=w+"px";
		      }
		var div=document.getElementById("dv");
		var div=document.getElementById("dv2");
		setBg.call(div,"#369",10);
		//setBg.apply(div,["#369",10]);
		setBg.call(div,"#369",10);
		</script>
	</body>
</html>
